package DesEncryptAndDecode;

import java.security.Key;
import java.util.Arrays;

/**
 * @ClassName TestMain
 * @Description TODO
 * @Author shenxinyuan
 * @Date 2021/11/22 $ {TIME}
 * @Version 1. 0
 **/
public class TestMain {
    public static void main(String[] args) {
        String words = "北京欢迎你！";            //内容
        String EncodeDecodeKey = "1234567890";        //加密秘钥
        String MingWen = "";

        String MiWen = "";

        MiWen = DESUtil.encrypt(EncodeDecodeKey, words);

        MingWen = DESUtil.decrypt(EncodeDecodeKey,MiWen);

        System.out.println(MiWen);
        System.out.println(MingWen);
    }
}
